Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 15, 2026 09:14
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
#include <metal_stdlib>
#include <SwiftUI/SwiftUI.h>
using namespace metal;
[[ stitchable ]] half4 simpledistort(float2 pos, SwiftUI::Layer l, float4 boundingRect, float progress, float distortion) {
float2 size = boundingRect.zw;
float2 uv = pos / size;
float2 center = float2(0.5, 0.5);
float2 delta = uv - center;
@jhkchan
jhkchan / wrong2kr.py
Last active February 15, 2026 09:11
wrong2kr.py
#!/usr/bin/env python3
"""
Encoding analysis: Why the "Chinese" on the sign is wrong
The sign stored the text as KOREAN (EUC-KR encoding). The display system
mistakenly interpreted those same bytes as TRADITIONAL CHINESE (Big5/CP950).
So each 2-byte Korean syllable (e.g. 물 "water") became one Chinese character
(e.g. 僭 or 㤮 depending on font). The "translation" is not a translation
but a double encoding misinterpretation:

VIDEOS MIGHT OUTDATED BUT TEXT IS NOT

this guide is not meant to help with leaking or feeding your paywall or any stupid things you might do to ruin experience for other people

TL;DR

  • Don't load whole folder or every file you have, in most big games you will run out of memory instead build assets map and cab map (dependencies) so Studio itself loads what it needs to
  • set your game under options->specify game then click on misc and type any name in assetmap textbox, optionally check dont process full bundle as it can shorten the time it takes to generate assetmap then click Build Both
  • after it finish, restart Studio, Misc->AssetBrowser click on load assetmap when it loads search for asset you need by name or type

Downloading

~~- for original Get latest version from Github Actions not releases from here , if you dont have account you can use site like nightly.link to download it , [Latest build](https://nig

@dabit3
dabit3 / you_couldve_invented_openclaw.md
Last active February 15, 2026 09:08
You Could've Invented OpenClaw

See more of my writing here.

In this post, I'll start from scratch and build up to OpenClaw's architecture step by step, showing how you could have invented it yourself from first principles, using nothing but a messaging API, an LLM, and the desire to make AI actually useful outside the chat window.

End goal: understand how persistent AI assistants work, so you can build your own (or become an OpenClaw power user).

First, let's establish the problem

When you use ChatGPT or Claude in a browser, there are several limitations:

@Tosainu
Tosainu / cute_AA.txt
Last active February 15, 2026 09:07
顔文字詰め合わせ
あせ (・_・;) 顔文字
あせ (・∀・;) 顔文字
あせ (^ω^;;) 顔文字
あせ (゚∀゚ ;) 顔文字
あせ (゚∀゚ ;)タラー 顔文字
あたふた ヽ(´・ω・`ヽ) 顔文字
あつい (。>﹏<) 顔文字
あつい (。>﹏<)あㄘ”ゅい 顔文字
あつい (>﹏<。Ξ。>﹏<) 顔文字
あつい ι(´Д`υ) 顔文字